cmake_minimum_required (VERSION 2.6)
project (shader)
SET(CMAKE_CXX_FLAGS "-g -msse3 -mmmx -std=c++0x -march=core2 -mtune=core2 -O2")
include_directories("${PROJECT_BINARY_DIR}", "../meshlib", "../../controls")
add_executable(bounce bounce.cpp bounce.h)  
add_executable(particle particle.cpp particle.h)
add_executable(flock flock.cpp boid.h)
add_executable(msd msd.cpp msd.h)
add_executable(main main.cpp bitmap.cpp bitmap.h)
add_executable(smoke smoke.cpp smoke.h solver.h)
add_executable(wave wave.cpp wave.h bitmap.cpp bitmap.h)
add_executable(rigid rigid.cpp rigid.h)
target_link_libraries (bounce GLEW GLU glut)
target_link_libraries (particle GLEW GLU glut)
target_link_libraries (flock GLEW GLU glut)
target_link_libraries (msd GLEW GLU glut)
target_link_libraries (main GLEW GLU glut)
target_link_libraries (smoke GLEW GLU glut)
target_link_libraries (wave GLEW GLU glut)
target_link_libraries (rigid GLEW GLU glut)
